Fix Python 2.6.0/2.6.1 support (fixes #302)