I don't normally do Python, but...
Needs must, as all the best cool kids are making Constraints Solvers in Python. Shall I rewrite Practical Python AI Projects: Mathematical Models of Optimization Problems in Ruby? Might be funs.
Anyway, Chapter 1 introduced a simple solver, but this is even simpler.