import pickle

data = {
    'a' : [1, 2.0, 3, 4+6j],
    'b' : ("character string", b"byte string"),
    'c' : {None, True, False}
}

# save
with open('data.pickle', 'wb') as f:
    pickle.dump(data, f)