fix pylint errors

fixes for 12869