The current code is written for the old version of the GoPiGo library, not for the current version gopigo3.
I have a version forked which works with the latest library and python3, which is now the default version of python on "DexterOS" which comes with GoPiGo now.
https://github.com/rossdeane/GoPiGo