download albums from favorites gallery

These 2 functions allows you to download the favorite gallery

you need to paste the source of page "http://imgur.com/account/favorites" to "myfile.txt" manualy
folder name = album name.

i just started with python, im sure the code is bad written but it works!