work towards py3 compat