Make it work with Python 2.7.