URL shortener written in Flask