Xreport is a project mainly written in Python, it's free.
Squid stats and reporting tool
Xreport - Squid stats and reporting tool.
http://wiki.github.com/diegows/xreport/installation-using-virtualenv