Refactored everything according syntax and standards checkers pep8 and pyflakes.