Added compatability to Python 2.6