How to Solve NameError: name 'ServiceAccountCredentials' is not defined -- oauth2client
Solution: Import the 'ServiceAccountCredentials' module
To Solve the error, add the following line to the top of your code.
from oauth2client.service_account import ServiceAccountCredentials
For more information:
Python oauth2client ServiceAccountCredentials