fix python3 quirk