Split Polygon Tool?

Maya has got Split Polygon Tool.

Here is the example.

Is it possible to write a similar tool with python? (for 2.5x)

Thank you.