Help Editable Poly

Personal'm trying to make a script that when the user selects an object the script adds it editable poly and some radiobuttons to choose which tool I want to change the object EX: Vertex, Edge, Polygon.
Can anyone help me?