I want to be able to take a shortened or non-shortened URL and return its un-shortened form. How can I make a python program to do this?
Additional Clarification:
Unshorten.me has an api that lets you send a JSON or XML request and get the full URL returned.