Consider taking a look at pysnmp-4 -- it has been designed with Agent role in mind. Here's an example Agent script:
http://pysnmp.sourceforge.net/examples/4.x/v3arch/agent/cmdrsp.html > I have a Python app and i would like to add someSNMPagent > functionality to it. -- http://mail.python.org/mailman/listinfo/python-list