python: Ensure curses.panel module is built