Add python3 type check workaround.