made pynt python 3.x compatible