code: def command2str(num):
      
      for attr in SLOT.__dict__.keys():
          if not attr.startswith('_') and attr == attr.upper():
              if getattr(SLOT, attr) == num:
                  return 'SLOT_%s' % attr
  
      return "0x%02x" % (num)
docs: Turn command number into name