Well, it is possible but not recommeded. It would be better if you use the COM API to connect to any hardware event.
If you want to use python, you would probably need a socket connection inside 3DCreate, written in python. Then this would need to have direct access to the hardware driver of your choice.
I hope this helps, and don't hesitate to contact us for any more questions!