iam module: tidy up to meet PEP8 better
fix test_get_signin_url_cn_north tests
Merge pull request #2566 from felixonmars/iam-tidy

iam module: tidy up to meet PEP8 better. Fixes #2566.