python 3 compat (and v1.3.1)