add pep8 checking tool and make code conform to pep8 rules