Fix issues found by pychecker

Signed-off-by: Andy Grover <agrover@redhat.com>