code: def busy(self):
          
          if self.handle.isexecuting():
              return True
          elif self.used_by is None:
              return False
          return not self.used_by() is None
docs: Return if the connection is currently executing a query or is locked
          by a session that still exists.
  
          :rtype: bool