Pebrot is an MSN messenger text client implemented with Python (needs Python 2.2 or higher). It also has a pretty curses-based interface.