Cleaning up useless casts, adding python full regression ability, fixing CfgTest::testPlacePhi2

* Cleaning up useless casts
* Adding Python version of regression tester script (I didn't want to install ruby just for this)
* Fixing CfgTest::testPlacePhi2