sdb module: add backward-compatible support for Python 3.3+
add long_type and use six.unichr
Merge pull request #2403 from felixonmars/sdb-py3

sdb module: add backward-compatible support for Python 3.3+. Fixes #2403.