code: def get_forecast_fromstr(self, reply):
          
          self.forecast = json.loads(reply)
  
          for item in self.forecast.keys():
              setattr(self, item, self.forecast[item])
docs: Gets the weather data from a darksky api response string
          and stores it in the respective dictionaries if available.
          This function should be used to fetch weather information.