Actually, consider using `dxpy.new_dxfile` or `dxpy.upload_local_file`. http://autodoc.dnanexus.com/bindings/python/current/dxpy_dxfile.html#helper-functions