Windows keymap, more reformat added

Added the keymap on Windows platform, added the beginnings of more
formatting in the core python file.