py26 and py3 compat