Update get_speculative_elements.py