fix up python2 scenario