python tests refactored and running
reworked end-to-end test