To make it work with Python 2.6