PEP8 and a security fix.

Easier than expected :)