Proper, grown up pep8 compliant style

Since @eah13 pointed it out, I ran the code through autopep8 and now the code is super style-compliant.

'random_location' throws an error, but otherwise works fine. I think my error handling method is sub-optimal.