Make Macaroon work in Python 3