code cleanup (pylint), #167