Python2 (and hopefully pypy) compatibility!