properly returning ctest return value from python script