Wrong arg order for isinstance

Do you even Python?