Since Apple depreciated Python 2 from all systems starting with 12.3 I cannot get any machine to onboard with our script. I installed python 3 and modified the script to point to that location. I get failed via Jamf and invalid syntax when dropping the script file in terminal after starting python. Below os the top part of the script.
#!/usr/local/bin/env python3
import sys, getopt, os, errno, json, plistlib, subprocess, tempfile
config_xml = '''<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">
<plist version=\\"1\\">
<dict>
Before the top line was #!/usr/bin/env python
Any Help is greatly appreciated