Functional Python implementation

The Python build has been brought up to speed with the bash version,
more or less.  This is a major milestone and makes me very happy, so…
that’s good.