Adding python3 compat.