optimise method calls in backport of matix multiplication
fix error handling in backported matrix multiplication and compare to actual behaviour in Py3.5