Fix for running halide in python 2.6