If you are building an Agent, you should register your contextName at SnmpContext class instance. See examples here and here.
If your app is a Manager based on pysnmp's high-level API, you should pass contextName to getCmd/setCmd(). See example an here (search for contextName).
Please clarify your task if my suggestions do not help.