sns module: add backward-compatible support for Python 3.3+
adjust test.py and docs to be able to merge with current code
fix dup items in index.rst and long line in test_connection.py
Merge pull request #2365 from felixonmars/sns-py3

sns module: add backward-compatible support for Python 3.3+. Fixes #2365.