Fix pep8 style guide-with parantheses and unit test