Added decode() for compatibility with Py3K