def normalize_cmd(cmd):
<EOL>exe = normexe(cmd[<NUM_LIT:0>])<EOL>cmd = parse_filename(exe) + (exe,) + cmd[<NUM_LIT:1>:]<EOL>exe = normexe(cmd[<NUM_LIT:0>])<EOL>return (exe,) + cmd[<NUM_LIT:1>:]<EOL>
Fixes for the following issues on windows
    - https://bugs.python.org/issue8557
    - windows does not parse shebangs

    This function also makes deep-path shebangs work just fine