The main problem is that your Python installation most likely was not compiled using the library readline. You can confirm this by trying to import the module readline:
import readline
You should get an import error if readlinenot.
If so, you can do nothing but recompile Python with the library readlineif you can.