Python 2.6 compatibility issue solved (Thanks to J.F.)