I coded a basic Python AI emotion reasoning engine for use in games and simulations using the Pyke expert system. Pyrsona is based on previous work done for the Affective Reasoner project.
Source. Documentation.