Make it more modular

Hi,

i wanted to use your download functions in a program of mine. 

Basically these changes allow importing your apple_trailer_downloader without executing the complete program and downloading everything. The original program was moved to the >> if __name__ == '__main__':<< part and global variables are now explicitly given to the functions.

greetings
robivanknobi