Fix types slice instance check in Python3