First, untested push of main python function from existing incarnation.
Passing first unit test, more to come.