python3 compat (via 2to3)