badded a timeout to urlopen so the plugin doesn't wait forever if it's not possible to retrieve data from the api