Adding unittest framework and a few basic tests for Python API generator

In theory, quite harmless to the functionality of the Python API.
Creates a 'tests' directory and adds unittests only.

"TestCode" directory should go away, but this commit does not delete it.  
(prefer to get buy-in and consensus before I do that)