having traitsui imports in the hydropick.model.algorithm module sounds not the right place.