fix a tiny issue when checking virtual functions in class_list.cpp.py