title: unicode is not defined error - flask-flatpages and python 3
body: <p>I installed <code>Flask-FlatPages</code> and am trying to run this simple app (to display <code>.md</code> files):</p>
  
  <pre><code>import sys
  from flask import Flask, render_template
  from flask_flatpages import FlatPages, pygments_style_defs
  
  DEBUG = True
  FLATPAGES_AUTO_RELOAD = DEBUG
  FLATPAGES_EXTENSION = '.md'
  FLATPAGES_ROOT = 'content'
  POST_DIR = 'posts'
  
  app = Flask(__name__)
  flatpages = FlatPages(app)
  app.config.from_object(__name__)
  
  @app.route("/posts/")
  def posts():
      posts = [p for p in flatpages if p.path.startswith(POST_DIR)]
      posts.sort(key=lambda item:item['date'], reverse=False)
      return render_template('posts.html', posts=posts)
  
  @app.route('/posts/&lt;name&gt;/')
  def post(name):
      path = '{}/{}'.format(POST_DIR, name)
      post = flatpages.get_or_404(path)
      return render_template('post.html', post=post)
  
  if __name__ == "__main__":
      app.run(host='0.0.0.0', debug=True)
  </code></pre>
  
  <p>Whenever I run the app, I get this error:</p>
  
  <blockquote>
    <p>NameError: name 'unicode' is not defined</p>
  </blockquote>
  
  <p>The trackback (flask-flatpages) is this:</p>
  
  <pre><code>File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/flask_flatpages/__init__.py", line 290, in _pages
  _walk(unicode(self.root))
  </code></pre>
  
  <p>I know <code>unicode</code> is now <code>str</code> in Python 3 -- can I fix the issue from my app (without modifying the package)?</p>