How select Material Slot with one active face in python

hello guys i have a problem by selecting the material slot.

when selecting the material slot, has no active Face…

how can i make him select an active Face under the selected Faces ?