Python 3 compatibility for json serializer

You're missing the part where fernet actually encrypts the bytes :wink: