import pickle with open('testi/collodi_pinocchio.pkl','rb') as f: testo=pickle.load(f)