Fixes a deprecation warning when building with Python 3.12:
DeprecationWarning: Testing an element's truth value will raise an exception in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
if stype and 'values' in stype.attrib:
Fixes a deprecation warning when building with Python 3.12: