fix init function name for python 2.7