Ensuring the proper exit status is returned from python test script.