Allow overriding Algorithm::isRunning in Python

Refs #8971
Allow Algorithm::cancel to be overridden in Python

Move Algorithm::cancel test to PythonAlgorithm test so it is more
reliable and doesn't rely on timings.
Refs #8971