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

cloudwatch module: add backward-compatible support for Python 3.3+. Fixes #2400.