Log Prospector is a web log analysis package with dynamic reports to show statistics on traffic, pages, internal and external links, search phrases, etc. You can summarize data by arbitrary periods from years down to days. It also includes PHP, Python, and Perl modules to show each page's stats in the page's footer or header (like a glorified hit counter).
Log Prospector is implemented in Python, with a MySQL backend database.
See the Log Prospector project page for bug tracker, mailing lists, etc. Stay tuned for more details and software releases.