in reply to viability of new perl module

Before you do that you might look at Inline::Python and see if using that is more succinct than your tmpfile approach.

The cake is a lie.
The cake is a lie.
The cake is a lie.