Add python implementation of inversion algorithm

While clojure is a blast, I'm getting close to the deadline and this took me
less than 10 minutes to write.  I have a long way to go.