Simple URL Shortener in Python / Flask