Url shortner using Python