cloudsearch2 module: add backward-compatible support for Python 3.3+
Merge pull request #2439 from felixonmars/cloudsearch2-py3

cloudsearch2 module: add backward-compatible support for Python 3.3+. Fixes #2439.