Mynde bugfixes

Make mynde work better, add a python sample program for calling mynde. Note that Mynde is not correct at this point (Bugs will be opened shortly)