Update shorten.py

.shorten url works because url is stored before the shorten logic is exectued. Redundant shorten functionality is not required.