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

cloudsearch module: add backward-compatible support for Python 3.3+. Fixes #2432.