win32 compat (based on jmdacruz pull request)

- Unified redundant java checks
- Added missing keymap
- Silent shell execution (pep20)
- Several pep8 issues