https://github.com/modularizer/pyprez/samples/min.html