It seems that Keith’s adversary has learned their lesson. This time they are sure their program is secure.
Here is what Keith knows about the source:
import random
#doing this first this time
inp = str(input("Enter the password: "))
#so secure you can’t get in even if you know the password
password = random.randint(0,2**30)
if (inp == password):
flag = open("flagfilename",'r').read() #flagfilename is different serverside
print flag
else:
print "WRONG password"