Hi,
You will have to read your local file's content and write it to a new irods object, e.g:
obj = session.data_objects.create(obj_path)
with obj.open('w') as obj_desc:
obj_desc.write(content)
# refresh object after write
return session.data_objects.get(obj_path)
You might also want to take a look at the test code in
https://github.com/irods/python-irodsclient/tree/master/irods/test for further examples.
AdT