1# Step 1
2import pickle
3
4config_dictionary = {'remote_hostname': 'google.com', 'remote_port': 80}
5
6# Step 2
7with open('config.dictionary', 'wb') as config_dictionary_file:
8
9 # Step 3
10 pickle.dump(config_dictionary, config_dictionary_file)
11