Trying to make it work on Python 3.x.