Replaced Mantid code by pure python. This refs #6577
Merge branch 'feature/6577_reduction_gui' into develop