Antonio Cuni yesterday posted a useful hack that brings colour and improved completions to the Python interpreter.
Attached is a minor patch which updates rlcompleter_ng.py to run on both Python 2 and 3 platforms.
On FreeBSD (and virtually every other system with a stock libreadline v 5.2) you'll need to patch libreadline - apply this patch to the source in /usr/src/contrib/libreadline. Don't forget to remake Python after making and installing the patched libreadline.
Looks lovely, thanks Antonio!