Update CPS python check to catch poorly formatted strings
The CPS group validity checks in python assumed more strict formatting than is assumed by the PrescalingTool
. This change will permit this now to catch misformatted strings which would still activate the C++ and are likely to fail downstream.