Add pep8 pass and Python3 compatible

Add pep8 pass and Python3 compatible