Version for Python 2.6 or less