format and reindent according to PEP8