added python 2 pycreate code