Return correct value on properly formatted BadRequestError.
Add api url keyword arg to Api init.
Add python version to user agent header.
Bump version to 1.2.2
Fixup: Add python version to user agent header.