def _WriteFile(output_path, name, content):
 path = os.path.join(output_path, name)
 with open(path, 'wb') as f:
  f.write(content)
 return path

def _WriteFile ( output_path , name , content ) : path = os . path . join ( output_path , name ) with open ( path , 'wb' ) as f : f . write ( content ) return path
write given content to a file in a given directory .