Use "not x" rather than "x == None" for testing the result of raw_input()

raw_input() will always return a string, never None, so the shorter form is safe. In the case of line 310, this is technically a semantic change, as the check was never going to happen.