To use the scripts that use the Google Classroom APIs, you'll need to first follow steps 1 and 2 at https://developers.google.com/classroom/quickstart/python, then run the following command:
pip install xlsxwriter
If you get a permission error, try:
pip --user install xlsxwriter