if you want to download a file in python you can use this as well

import urllib urllib.urlretrieve("http://bit.ly/xg7enD","myfile.mp3")

and it will save your file in the current working directory with "myfile.mp3" name. i am able to download all types of files through it.

hope it may help !