Fix #2409 : Console Non-interactive curses ImportError