Python script that executes another program and writes its output to a web page