Dilemma.py is a project mainly written in Python, it's free.
Iterated Prisoner's Dilemma in Python