Python scripts that require the Curses library have been known to throw ImportError: No module named '_curses'. This error occurs when Python was configured and compiled without the libncursesw5-dev package present. You can fix it by re-configuring and re-compiling Python after installing libncursesw5-dev. See the Dockerfile for an example.
https://www.reddit.com/r/learnpython/comments/24zwo4/340_ubuntu_1404_importerror_with_curses/