more refactors of python code.  Added python file integration testing to the makefile