fix b64-handling of data in Python 3