Ensure the scope of the exec calls is limited for both globals & locals
Normalize case for functions vs classes, add mine shortcut
Update tests to use new syntax
Merge pull request #10630 from borgstrom/pyobjects_security

Pyobjects security & convention