A pythonic way to shrink and grow URLs.