Fix errors found by pychecker
2 files changed