glacier module: add backward-compatible support for Python 3.3+
use old syntax for codecs to gain compatibility with Python 3.3
adjust test.py to be able to merge with current code
use codecs.decode as suggested
Merge pull request #2357 from felixonmars/glacier-py3

glacier module: add backward-compatible support for Python 3.3+. Fixes #2357.