PEP 8

Applied a more rigorous interpretation of PEP8 and removed the unused traceback imports.