minor cleanup thanks to PyChecker