modifications to fix PEP8 issues