Clean up kwallet2john.py (PEP8 fixes + a nasty logic fix)