Attempt to write a web crawler in python