chaned to support python2 version of pycreate