How can I unshorten a URL using python?
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:

Case 1: shortened --> unshortened <br />
Case 2: unshortened --> unshortened 

e.g. bit.ly/silly in the input array should be google.com in the output array <br />
e.g. google.com in the input array should be google.com in the output array

Thanks for the help!
How can I unshorten a URL using python?
===

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:

Case 1: shortened --> unshortened <br />
Case 2: unshortened --> unshortened 

e.g. bit.ly/silly in the input array should be google.com in the output array <br />
e.g. google.com in the input array should be google.com in the output array

Thanks for the help!