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

opsworks module: add backward-compatible support for Python 3.3+. Fixes #2402.