add HIDE_PROMPT config, timeout to check interval and fix readline bug with Python 3