You probably want `b'a'` here for Python 3, otherwise is will be unicode.