Webservice with Python Code

Hi,

I have a wsdl webservice phyton code. I want to run this web service at firing. I want to use this when my tags alarm.
Python code runs on “Script Console”.
But I don’t know where to run this code? Please Help me.