Getting rid of Python script, fixing various sytax errors that caused test failures. We now have various failures due to testthat and RUnit apparently treating tolerance differently - tests that pass with RUnit fail with testthat given the same tolerance