beanstalk module: add backward-compatible support for Python 3.3+
adjust docs to be able to merge with current code
fix unittest import for python 2.6 compatibility
Merge pull request #2372 from felixonmars/beanstalk-py3

beanstalk module: add backward-compatible support for Python 3.3+. Fixes #2372.