I implemented that last year, let me dig it up, the python wrapper has all the methods needed for that (including the feature descriptor and optimization method), build it and then will update my bid with some more details and a screen record of the demo. Probably on Friday I will get to do that.