Fix some failing perl smoketest stuff.
Add python support.

I really need to TDD this script into modules is what I learnt from this exercise.

How I tolerated building scripts this way before is beyond me now. Past mitch was dumb.

Hopefully Future mitch learns and fixes things. Maybe one test a day will keep the
spaghetti away.