pyfics is a python library for connecting to Free Internet Chess Server(FICS) and parsing messages received. With pyfics it's easy to write bots or interfaces for FICS in python.
To install simply run:
python setup.py install
This makes Pyfics available to any script on the machine. You need root access to install it this way. If you do not have root access or if you do not wish to install Pyfics so that is available to any script then you can just copy the pyfics.py file to same directory as your script.