REFAC: try to import dill otherwise import pickle
REFAC: remove soma_workflow dependency unless it is necessary