elastictranscoder module: add backward-compatible support for Python 3.3+

No unit test to test with, I've tested only with integration tests and they passed here.