I had to install Install Certificates.command from the application folders, python 3.7 on my mac to get speedtest to work. I got this error otherwise
2019-04-07 08:44:15 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.4738584080] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>