Years ago I used to make very basic lisp files to do very very basic tasks, can anyone help me with this

Attached is the lisp routine :- and before anyone says yes there is probably a better way to make the lsp file
and also return osnaps to previous settings

All i want to do is select and Arc or even better window select arcs and turn them into circles.
There is a problem when sometimes exploding blocks circles become 1 arc with a start point 0
and end point 360, Qcad displays these arcs and one can assume they are circles, but when loading
the dxf into CNC software it displays as a Dot, likewise in AutoCad a dot / zero length arc

Thanks for any help in advance
Cheers
John
PS I didn't know how to insert it as code

if you don't want to download the zip file..