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

Tests passed, and I've tried to send a few e-mails with Python 2.7.8 and 3.4.1, both worked.