fix pylint related errors