Fixed PEP8 test warnings and errors