title: Python Pickle.load() not loading correctly
body: <pre><code>SCOPES_SHEETS = 'https://www.googleapis.com/auth/spreadsheets'
  </code></pre>
  
  <p>Gives read/write permissions ^</p>
  
  <pre><code>def main():
      service_sheets = get_google_service('sheets', 'v4', 'token_sheets.json', SCOPES_SHEETS)
      with open('services.pkl', 'wb') as f:
          pickle.dump(service_sheets, f)
      with open('services.pkl', 'rb') as f:
          service_sheets = pickle.load(f)
      with open('serviceCopy.pkl', 'wb') as f:
          pickle.dump(service_sheets, f)
  
  def get_google_service(type, version, token, scope):
      store = file.Storage(token)
      creds = store.get()
      if not creds or creds.invalid:
          flow = client.flow_from_clientsecrets('credentials.json', scope)
          creds = tools.run_flow(flow, store)
      return build(type, version, http=creds.authorize(Http()))
  </code></pre>
  
  <p>I have a program that I want to run as a service in the background. It involves reading/writing things in a google sheet. For this I have to create a google service but I don't want to have to do it every time the code runs so I'm trying to store the service object in a file instead. For some reason the file <code>service.pkl</code> is different from <code>serviceCopy.pkl</code>. I've tried changing the encoding for <code>pickle.load(file, encoding='utf8')</code> but I keep getting files that don't match. </p>
  
  <p>To my understanding they should be exactly the same.</p>
  
  <p>I think the issue is with loading the saved file but I'm not sure what's causing it.</p>
  
  <p>I'm using python 3.6.</p>