Implement #121
Merge pull request #132 from liliakai/flask-rewrite

Implement #121