python-ocfra is a python library intended to make writing OCF Resource Agents in python easier.
This project was written at work, and as such is Copyright IP Systems, but they agreed to release it under an Open Source license.
You can get a copy of the code from Launchpad, and Ubuntu users can add the apt repository ppa:therealmik/ocfra.
Sample Resource Agent