Working example of script with python?

It's interesting that this (DOpus object visible) apparently worked some time ago: