def user_file(filename, username="master"):
    """Return json file for the user and given filename."""
    assert username, "user_file: empty username."
    if username == 'master':
        return './library/' + filename + '.json'
    else:
        return './users/' + username + '/' + filename + '.json'