code: def update_credentials(self, key, secret):
          ''' Update credentials '''
          self.access_key = key
          self.secret_key = secref update_credentials(self, key, secret):
          ''' Update credentials '''
          self.access_key = key
          self.secret_key = secret
docs: Update credentials