from flask import Flask, render_template

app = Flask(__name__, instance_relative_config=True)
app.config.from_pyfile('config.py')

@app.route("/")
def index():
    from handlers.handler_500px import photos
    results = photos(search='greyhound')
    return render_template('index.html', results=results)

@@ -299,8 +299,122 @@
 esults)%0A
+%0Aif __name__ == '__main__':%0A    # Run me as 'python -m app' to avoid path/import problems%0A    app.run(debug=True)%0A

Add runner for development