prepare for py3 compat