After an evening of frustration and seemingly moving around in unproductive circles, I managed to get gui.py (the script that visualises data) to directly call from solcast_data_fetch.py which is the script that makes API calls to Solcast. I need this process to be automated so that the end-user does not need worry about using data that is not current.