Going to try and work from the python bindings generator included in opencv trunk.