python2/3 compat issues