Rewrote the gen_hooks.ps1 and gen_syscall_table.ps1 to python