fixed key map of python/py-shell mode.
fixed misc.