tighten Python-to-C++-reference warning to apply only to C++ classes as target and do not show it by default (usage might be legitimate and/or enforced by an external API)