Fix prefix-related bugs in {parse,dbg}.py.