If you work with python, you likely know Ipython which allow works with Python in a nice way. I’ve worked previously in ubuntu linux. Now that I need work with this in Mac, I used the following commands to get it working.
sudo easy_install ipytho sudo easy_install readline
In my first attempt, I followed this post http://brianberliner.com/2008/04/18/ipython-on-mac-os-x-105-leopard/ of Brin Berliner but I got an compilation error, so I changed it to my commands and it works well.