with open('filename', 'rb') as f: x = pickle.load(f)
import pickle with open('serialized.pkl', 'rb') as f: data = pickle.load(f)
with open('filename', 'a') as f: pickle.dump(data, f)