title: Write the output of a script in a html page using flask
body: <p>I wrote a script that makes me able to run a script and then to get the output I want, I am trying to write the output in a html page, how can I do that? this is my script:</p>
  
  <pre><code>def execute(cmd):
      os.system(cmd)
      to_return =dict()
      for filename in files:
          with open(filename, 'r') as f:
              data = f.read()
              to_return[filename] = data
      return to_return
  
  output = execute('./script')
  print output
  </code></pre>
  
  <p>Any Idea of how I can generate an html page where I can print the result of running this script??</p>