Pressing TexFace button (in editbuttons) in python?

How would I go about the equlivant of pressing the TexFace button in python?

I mean the one in the edit buttons. (not the material buttons)

I need to do this because some meshes do not allow changes of their uv coordinates until it is enabled, either by entering face select mode, or pressing the TexFace button