refs #7983. Implement python algorithm.

Python algorithm and tests created.
Merge branch 'feature/7983_mean_algorithm' into develop