* PEP8: Fix module level import not at top of file * Remove unused imports * Remove simplejson * Replace mimetools with email
* Remove redundant backslash between brackets * Fix multiple statements on one line * Fix missing/excess whitespace * Fix comments not starting with a single # and a space * Convert tabs to spaces * Use triple-quoted docstring