def get_themes(urls):
    '''takes in dict of names and urls, downloads and saves files'''

    length = len(urls)
    counter = 1
    widgets = ['Fetching themes:', Percentage(), ' ',
               Bar(marker='-'), ' ', ETA()]

    pbar = ProgressBar( widgets=widgets, maxval=length ).start()

    for i in urls.keys():
        href = 'http://dotshare.it/dots/%s/0/raw/' % urls[i]
        theme = urllib.urlopen(href).read()
        f = open(THEMEDIR + i, 'w')
        f.write(theme)
        f.close()
        pbar.update(counter)
        counter += 1

    pbar.finish()
takes in dict of names and urls, downloads and saves files