Fix bug 1011001: Add support for optin param back to subscribe.

* Fix flake8 issue. Add flake8 config.
* Improve optin documentation in README and doc string.
* Also add some case-insensitivity tests.