Fixes for building

I noticed that in newer versions of Python accessing the key "content-disposition" leads to a KeyError as the key will be named there "Content-Disposition" after converting url_lib.urlopen(url).info() to a dictionary.