First version of the python interface class. Will move to a separate project shortly.