The diode model is not complete yet. There is no special function for the diode to freewheel. So that would be the next step.
I will be giving a lightening talk (5 minutes only) in Pycon Canada to be held in Toronto next month. So if any of you are planning to attend, do send me an email.