Fixed for builds with python 3.x