def json_maker(angledeg,collangledeg): for angledeg in angledeg_list: { for collangledeg in collangledeg_list: point1 = "0,0,0" point2 = str(L