fixed style tests and test for python 3