fix for pep8 and add parser base test