Made library compatible with Python 2.6
Compatible with Python 2.6