code: def _clean_params(self, params):
          
          clean_params = {}
          for key, value in params.iteritems():
              if value is not None:
                  clean_params[key] = value
  
          return clean_params
docs: Removes parameters whose values are set to None.