def LogIn():
    name = input('Please enter your name: ').lower()
usernames = pickle.load('data.pickle')
for userdata in usernames:
    if userdata['name'] == name:
        pass
Python GUI login program