fixed issue with json module unable to encode numpy.int32