compat python2/3