__new__() does not work as expected in python 2.7