updated key generation in crawl.py