Your code doesn't need to be aware of the different connection type, but you do need to call a different method to make your connection. My code worked with just two changes:
I changed
my_connection = boto.connect_s3()
to
my_connection = boto.connect_gs(goog_dev_key, goog_dev_secret)
I changed my bucket naming connection to avoid embedded periods, which are unacceptable on GS.
All other code remained the same.