PEP8 and fix syntax errors