A link shortener in Python