[tor-commits] [bridgedb/develop] Make init hook compatible with Python 3.