fix wasteful to_python()
calls checking for undefined
#4035
Loading
to_python()
calls checking for undefined
#4035