[gcc-python-plugin] cpychecker: use check_isinstance rather than "assert isinstance"