Fix roundTrip python3 compatibility.