Removed useless check.
Fixed pep8 warnings
Added a comment about Python3.