Beginning migration to Python 3

Began migration to Python 3; the test script now runs, and I've gotten
basic API and keystore functionality working