BUG: typos and syntax errors in etc/mercurial/debug.py