Fixed errors reported by pylint
PEP8 fixes
Fix docstrings