so you can create the httplib2 instance in the constructor, and authorize it in http().
That should allows you to get rid of the `hasattr` stuff.