Minor reformatting and error checking for page title parser. Replaced run_simple() with app.run() and added PROPAGATE_EXCEPTIONS.