Python 2.6 porting tips