How can I tell if the user is selecting faces or edges or vertices with python?, Thanks.
edit_mode = bpy.context.tool_settings.mesh_select_mode
Thanks Darcvizer!.