title: My python function won't write to a file
body: <p>I've made a function for a flask application to create a decorator and a function and then write them to a file but when I run it, it doesn't create a file and write to it and it doesn't return any errors.</p>
  
  <pre><code>def make_route(title):
      route = "@app.route(/%s)" %(title)
      def welcome():
          return render_template("%s.html" %(title))
      return welcome
      f = open('test1.txt', 'w')
      f.write(route, '/n', welcome, '/n')
      f.close()
  
  make_route('Hi')
  </code></pre>