I am thouroughly confused by this one so if someone has some insite that could put me back on track.
def open_column(): #Works with open lat lon column button in def edit
latlong = askopenfilename()
#print(latlong)
lat_long=[]
in_lat_long_file= open(latlong)
lat_long= in_lat_long_file.read()
in_lat_long_file.close()
slat1=-1
cc=0
dd=1
shapefile2=[]
outside=0
myList = ''.join(map(str, lat_long))
newstr1 = myList.replace("'", "")
myList2=newstr1.strip("").split(',')
mystr1=''.join(myList2)
myList4 = mystr1.split("\n")
myList5 = [tuple(myList4[ip:ip+2]) for ip in range(0, len(myList4), 2)]
myList5 = [(myList4[ip:ip+1]) for ip in range(0, len(myList4), 1)]
myString = str(myList5)
zot=0
zob=1
nop=0
loopt=len(myList5)
wg = shapefile.Writer(shapefile.POINT)
print (loopt, "loopt")
x=1
for hk in myList5:
if zob+2<=loopt:
nope=myList5[zot]
itemw = myList5[zot]
itemw2 = str(itemw)
itemw3 = itemw2.replace("'", "")
itemw4 = itemw3.replace("[", "")
itemw5 = itemw4.replace("]", "")
itemw6 = float(itemw5)
itemh = myList5[zob]
itemh2 = str (itemh)
itemh3 = itemh2.replace("'", "")
itemh4 = itemh3.replace("[", "")
itemh5 = itemh4.replace("]", "")
itemh6 = float(itemh5)
print(itemw6,itemh6)
nop2=float(nop)
boo= (nop2,nop2)
if zot < loopt:
wg.point(itemw6,itemh6)
wg.field('FIRST_FLD')
wg.records.append(boo)
wg.save("point")
zot=zot+2
zob=zob+2
nop=nop+ 1