Threaded python web crawler with MongoDB backend