Added fmt() function and switched to using it (#1376)

Also changed the top of a few modules to match PEP 8.
Changed a couple more strings to use fmt()
Merge branch 'staging' into gh-1376
Fixed calling params when leaving a team (#1376)
Removed unused exception class

It had an old-style format string and I figured it was better to
remove the cruft then try to fix it.
Merge pull request #1403 from pculture/gh-1376

Gh 1376