for sym in dir(hid):
    if sym[0:4]=='HID_':
        errs[eval(sym)] = sym
