Refactor: cts,python: Move the run method into the Test class.
With a few minor changes, this code is also the same between cts-exec
and cts-fencing. The biggest change here is renaming
match_stonith_patterns to _match_patterns, making it more generic so it
can always be called from the run method even if it doesn't do anything.