URL shortening service written in Python