Fix failure detection for python tests. No issue #