code: def _get_oauth_params(self, req_kwargs):
          '''Prepares OAuth params for signing.'''
          oauth_params = {}
  
          oauth_params['oauth_consumer_key'] = self.consumer_key
          oauth_params['oauth_nonce'] = sha1(
              str(random()).encode('ascii')).hexdigest()
          oauth_params['oauth_signature_method'] = self.signature.NAME
          oauth_params['oauth_timestamp'] = int(time())
  
          if self.access_token is not None:
              oauth_params['oauth_token'] = self.access_token
  
          oauth_params['oauth_version'] = self.VERSION
  
          self._parse_optional_params(oauth_params, req_kwargs)
  
          return oauth_paramf _get_oauth_params(self, req_kwargs):
          '''Prepares OAuth params for signing.'''
          oauth_params = {}
  
          oauth_params['oauth_consumer_key'] = self.consumer_key
          oauth_params['oauth_nonce'] = sha1(
              str(random()).encode('ascii')).hexdigest()
          oauth_params['oauth_signature_method'] = self.signature.NAME
          oauth_params['oauth_timestamp'] = int(time())
  
          if self.access_token is not None:
              oauth_params['oauth_token'] = self.access_token
  
          oauth_params['oauth_version'] = self.VERSION
  
          self._parse_optional_params(oauth_params, req_kwargs)
  
          return oauth_params
docs: Prepares OAuth params for signing.