def Username(i, delegates, usernames):
    """
    Returns delegates dictionary with username of delegate
    from usernames.json file.
    """
    name = delegates[i]['Name']

    if name in usernames:
        delegates[i]['Username'] = usernames[name]
    else:
        delegates[i]['Username'] = ('NEWBIE')
    return delegates