use dict in keymap instead of fixed-length list
extract version and name in setup.py from cplay.py