def load_object(string): # converts string to whatever was dumps'ed in it return joblib.load(BytesIO(string))