Make it work with python2 AND python3