Can't install Python Modules
Problem sovled

This issue was caused because I had imported a time machine back which was made using snow lepoard. Doing this had overwrote the mountain lion libraries.

I just had to reinstall mountain lion over the existing install and then xcode and homebrew and it worked fine.