These little scripts parse through Adium chat logs and format them into nice little plaintext files. Given that I'll only need to do this once, I have put zero effort into doing anything elegant here.
You will most likely need iso8601 as well, so:
$ pip install iso8601
The bulk of imlog.py was shameless stolen from: https://github.com/dustym/py-imlog.