replaced `six` lib dependency with module level functions
pep8ify