ChitChat is a project mainly written in Python, it's free.
A simple public chat room (python/django, javascript, jQuery)