Functionalized grab_forecast.py