How to include ZMS Helper Code from a PythonScript

ZMS Helper's comprehensive set of functions is only available within DTML methods. With the following code snippet those functions are also callable from a Python script.

This script was inspired by this recipe on ZopeLabs.