edmund-huber/contract.py — pull request #5 by bukzor (2012-03-06 01:56:50+00:00)
Title: For your perusal.

I'm pretty sure this approach has equal power, and 1/2 complexity.