http://www.imdb.com/title/tt0315824/photogallery-ss-0 Gallery = ['http://www.imdb.com/title/tt0315824/photogallery-ss','http://www.imdb.com/title/tt0315824/photogallery-granitz'] GalInfo = [1,3] with the above, I am trying to get a result like: Thumbs['http://www.imdb.com/title/tt0315824/photogallery-granitz-0','http://www.imdb.com/title/tt0315824/photogallery-ss-12'],['http://www.imdb.com/title/tt0315824/photogallery-ss-0','http://www.imdb.com/title/tt0315824/photogallery-ss-12','http://www.imdb.com/title/tt0315824/photogallery-ss-24','http://www.imdb.com/title/tt0315824/photogallery-ss-36'] (two lists saved within a list so I can separate each properly for the directory structure I have setup. Each gallery will be saved in it's own folder)