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

directconnect module: add backward-compatible support for Python 3.3+. Fixes #2361.
Fix integration test for Python 2.6