Fix python3 incompatibility in base_output test

Signed-off-by: Tomas Hozza <thozza@redhat.com>