Added an earlier python implementation from before for historical reason...

...s.