make base64 decoding ipython3 compatible