factor out Buffer class
use per buffer keymap
set buffer default key handler after buffer-created emit
bind_key_handler refactor
use cascading keymap to provide python specific bindings