Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849.