api-python addition

lots of work still to do on this, commit so others can test.