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