Can someone help me cleaning this up?

i wann make me a custom menu but dont have any big clue of programming…
some of my code is working, but not right and not everything, anyone have 2 minutes to check it?
thanks
alot :wink:

here is what i want:

  1. open “import svg” panel
  2. convert to mesh
  3. remove doubles
  4. smooth shading
  5. modifyer edge split
  6. save as .blend file
  7. export as .obj

here is what i have:

import bpy

class newMenu(bpy.types.Menu):
bl_label = “newMenu”
bl_idname = “newMenu”

def draw(self, context):
    layout = self.layout
    
    layout.operator("import_curve.svg", text="Import .SVG")
    layout.operator("convert(target='MESH', keep_original=False)")  
    layout.operator("mesh.remove_doubles")  
    layout.operator("object.shade_smooth")
    layout.operator("object.modifier_add", text="Edge Split", icon="MOD_EDGESPLIT").type='EDGE_SPLIT'
    layout.operator("wm.save_as_mainfile", text="Save as .blend")
    layout.operator("wm.export_mesh.ply", text="export")

def register():
bpy.utils.register_class(newMenu)

def unregister():
bpy.utils.unregister_class(newMenu)

if name == “main”:
register()

bpy.ops.wm.call_menu(name=newMenu.bl_idname)