'Override the default user agent
Args:
user_agent:
A string that should be send to the server as the User-agent'

def SetUserAgent(self, user_agent):

    self._request_headers['User-Agent'] = user_agent
