with open('myfile.txt') as f:
    credentials = [x.strip().split(':') for x in f.readlines()]
for username, password in credentials:
    pass
Grab username:password from text file, then post into login form