fixed a few pylint errors and removed old comments