Refactor _window.py, add global commands, and lower spaced emacs command.