Switched from using string method names to structured operations.

[Delivers #57812080]
Self-review
Fix python test.