URL shortner in python