I have a save function within my Python program which looks like this:
def Save(n): print(\"S3\") global BF global WF global PBList globa
You need to escape your strings: a \ in a string is an escape character.
Either escape the slashes:
"C:\\KingsCapture\\Test\\List.txt"
or use Raw strings:
r"C:\KingsCapture\Test\List.txt"