Keeping this one in the back of your mind might save you some serious headache…
Discover the useful
download_url() functions. Much abliged Konstantin!
Need to know the type of an object [in Python]? Let me make a brief argument: No, you don’t. Just use the object as if it was whatever you expect it to be, and handle any errors that result.
Thanks for the reminder: http://www.siafoo.net/article/56