zpmlib: fix Python 3 compatibility

We didn't see these errors before because the source code wasn't
actually imported in Python 3 until we added the first test.
tox: find any Python 3 version on the system