Add parallelisation into mex-function, delete all Python "staff" from code.

Cancelled - Find more jobs like this here