def make_file(path, contents='', overwrite=False):
    """
    Make a file at `path` assuming that the directory it resides in already
    exists. The file is saved with contents `contents`
    """
    if overwrite or not os.path.exists(path):
        with open(path, 'w') as fh:
            fh.write(contents)
        return True

    return False
def make_file ( path , contents = '' , overwrite = False ) : if overwrite or not os . path . exists ( path ) : with open ( path , 'w' ) as fh : fh . write ( contents ) return True return False
Make a file at `path` assuming that the directory it resides in already
    exists. The file is saved with contents `contents`