Checked pep8 and pyflakes. Compatibility python3