title: Python function return dictionary?
body: <p>I am a beginner Python user and I have come across an output to a function that I don't understand.  I can't give all the code because some of it is IP at my company.</p>
  
  <p>I am basically using a library written by one of our devs to pull a metric from out data warehouse.  I want to then use this metric value in another application to when i get the value i will pass it to my own DB.  </p>
  
  <p>My issue is I dont understand the output of the function I am using to actually extrapolate the value I want. </p>
  
  <p>If someone with more Python experience could tell me what the return of the function is doing as the best I can tell it is building a dict, but I don't fully understand how and where.  I must add this is the function from inside the lib</p>
  
  <pre><code>def get(self, **kwargs):
      if 'SchemaName' not in kwargs:
          kwargs['SchemaName'] = self.find_schema_by_params(**kwargs)
  
      if 'Stat' in kwargs and kwargs['Stat'] not in MWS.VALID_Stat:
          raise MWSException("Incorrect Stat value: %s" % kwargs['Stat'])
  
      if 'Period' in kwargs and kwargs['Period'] not in MWS.VALID_Period:
          raise MWSException("Incorrect Period value: %s" % kwargs['Period'])
  
      self._validate_schema(kwargs, MWS.DEFAULT_GET_PARAMETERS)
      self._encode_start_time(kwargs)
  
      if 'EndTime' not in kwargs:
      if kwargs['StartTime'].startswith('-P'):
              kwargs['EndTime'] = '-P00D'
          else:
              kwargs['EndTime'] = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.000Z")
  
      return self._mws_action('GetMetricData', **kwargs)['StatisticSeries']
  </code></pre>