It occurs to me that the morphing used here is most likely nearest neighbor (linear interpolation wouldn't make sense). So it should actually be easy and fast to do it in Python.