my name is erezlevi, and I want to know how can I create object and find examples about it.

I need a way to register my script to windows so when using this:

i=create (erez.levi)
with i
.Initialize (0)
.Senddata ("12345")
.Terminate ()

how can I write an Python script that will invoke if this is created using C, Active Exe, or other scripting languages. and when this object is created the Python script will start to work for me and transfer the "12345" between applications.

Thanks, Hope you understood what I need.

That sort of thing is usually done by subprocess.Popen() or os.popen() functions.