Python 2.6 compatibility

Fixes TypeError: decode() takes no keyword arguments