python bug prevents this parallelisation from working. will have to revert to joblib.Parallel