different approach to python2/3