I don't know if there is something existing that can take a python object and do this, so I'm assuming we need to write one.