Helper functions for python-cmislib