Python Web Spider using sets