Pylint

Fix errors detected by pylint