Clone headers before setting user-agent to preserve the semantics of httplib2 request method