Interesting question. I have used Python extensively, both with Abaqus and as a stand-alone scripting language. I have to confess, however, that I don't know of the ContourIntegral function that you are refering to. Is is a feature of CAE, or Python, or something else
In other words, I don't think I can give you instantaneous assistance, but I am curious to learn more about what you are trying to do, and perhaps I can provide feedback soon...
Jorgen Bergstrom, Ph.D.