python: how do i convert from binary to base 64 and back?,"print(struct.pack('I', val).encode('base64'))"