python: fix readline module to build with >=6.3.