switch to httplib2