[pep8] Fix E203, E231 and E302 warnings