code: def _handler(func):
      "Decorate a command handler"
  
      def _wrapped(*a, **k):
          r = func(*a, **k)
          if r is None: r = 0
          return r
  
      return staticmethod(_wrappedf _handler(func):
      "Decorate a command handler"
  
      def _wrapped(*a, **k):
          r = func(*a, **k)
          if r is None: r = 0
          return r
  
      return staticmethod(_wrapped)
docs: Decorate a command handler