Turtle: Mel to Pymel

Trying to convert this line of mel to pymel

ilrVertexBakeCmd -target "pCubeShape1" -frontRange 0 -backRange 200 -frontBias 0 -backBias -100 -transferSpace 1 -selectionMode 0 -mismatchMode 0 -envelopeMode 0 -ignoreInconsistentNormals 1 -considerTransparency 0 -transparencyThreshold 0.001000000047 -camera "persp" -normalDirection 0 -shadows 1 -alpha 1 -viewDependent 0 -orthoRefl 1 -backgroundColor 0 0 0 -frame 1 -bakeLayer TurtleDefaultBakeLayer -samplingMode 0 -vertexBias 0.001000000047 -camera "persp" -frame 1 -shadows 1 -orthoRefl 1 -alpha 1 -normalDirection 0 -viewDependent 0 -useBlending 1 -rgbBlend 0 -alphaBlend 0 -rgbScale 1 -alphaScale 1 -saveToColorSet 1 -colorSet "baked_$p" -overwriteColorSet 1 -saveToFile 0 -layer defaultRenderLayer 

This is what I have so far

import pymel.core as pm

pm.ilrVertexBakeCmd(target="pCubeShape1", frontRange=0, backRange=200, frontBias=0, backBias=-10, transferSpace=1, selectionMode=0, mismatchMode=0, envelopeMode=0, ignoreInconsistentNormals=1, considerTransparency=0, transparencyThreshold=0.001000000047, camera="persp", normalDirection=0, shadows=1, alpha=1, viewDependent=0, orthoRefl=1, backgroundColor=(0, 0, 0), frame=1, bakeLayer="TurtleDefaultBakeLayer", samplingMode=0, vertexBias=0.001000000047, camera="persp", frame=1, shadows=1, orthoRefl=1, alpha=1, normalDirection=0, viewDependent=0, useBlending=1, rgbBlend=0, alphaBlend=0, rgbScale=1, alphaScale=1, saveToColorSet=1, colorSet="baked_$p", overwriteColorSet=1, saveToFile=0, layer="defaultRenderLayer")

When I try to run that, I get a: # Error: keyword argument repeated #

camera "persp" 
normalDirection 0 
shadows 1 
alpha 1 
viewDependent 0 
orthoRefl 1
frame=1

Removing those culprits and then I get a : # Error: RuntimeError: file line 2: No surfaces given, use -target “surfaceName” #

Target is the first thing that is defined. I’m stumped any help would be appreciated.

Thanks.