Tidy up example.
Reorganised code into mippy python module.