Fix pychecker questionable code

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