PyLint

Corrected a multitude of pylint warnings