set user-agent header

Change-Id: Ia67807667b4b5177d83cce9fcf16d98dc5024fbc
don't use mutable defaults in kwargs

Change-Id: I3ae71259ccc49a5d8a852388784c3dfd577df50a
Merge "set user-agent header"
Merge "don't use mutable defaults in kwargs"