Better tab completion support in the prompt UI for Mac OS X users.
For some Python versions, the Mac supplied libedit library is used rather than GNU readline. But
this library uses a completely different language and hence tab completion was non-functional on
these systems. The library difference is now detected and the correct language sent into libedit to
activate tab completion.