code: def oper(self, name, password):
          
          with self.lock:
              self.send('OPER %s %s' % (name, password))
              snomasks = ''
              new_umodes = ''
              if self.readable():
                      msg = self._recv(expected_replies=( \
                                                      'MODE', '381', '008'))
                      if msg[0] == 'MODE':
                              new_umodes = msg[2].replace(':', '', 1)
                      elif msg[0] == '381':
                              return new_umodes, snomasks
                      elif msg[0] == '008':
                              snomasks = msg[2].split('(')[1].split(')')[0]
docs: Opers up.
          Required arguments:
          * name - Oper name.
          * password - Oper password.