def path_to_filename(username, path_to_file):
    """ Converts a path formated as path/to/file.txt to a filename, ie. path_to_file.txt """
    filename = '{}_{}'.format(username, path_to_file)
    filename = filename.replace('/','_')
    print(filename)
    return filename