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

elasticache module: add backward-compatible support for Python 3.3+. Fixes #2356.