x86: fix ruff issues on gen_idt.py Fixes issues found by ruff on gen_idt.py. Signed-off-by: Daniel Leung <daniel.leung@intel.com>