import pickle_ascii as pickle f=open('/home/marcin/test.pickle', 'r+b') f.seek(0) string2=f.read() f.close() x=pickle.loads(string2) print x