Fixed a bug in python 2.6 in init