PEP8 Violations fix and compat module added to remove six dependency