Revert "Revert "python26: don't link objects to readline and ncurses simultaneously""

This reverts commit d2a06f482ac60ac85479eb67dfb300f13a2de2bc.