use EOS to build python program string, roll the bit of
shell script into the python program itself to simplify.
cleanup