ticket:5 python 2.6 compatibility