Package versions cannot contain hyphens.
Store test exception detail if requested.
Add Python unittest info to test XML.

The Python unittest output is added as an additional
test measurement to the ctest XML. This can be used
to report more useful error messages for failures.