Utility routines

These C++ routines can be found in SPutils.h and SPutils.cxx and are not available from Python.