def make_file(path, content='', permissions=None):
 path.setContent(content)
 if (permissions is not None):
  path.chmod(permissions)
 return path

def make_file ( path , content = '' , permissions = None ) : path . setContent ( content ) if ( permissions is not None ) : path . chmod ( permissions ) return path
create a file with given content and permissions .