converting numpy types to python floats for json serialization