FileNotFoundError: [WinError 2] The system cannot find the file specified

The above call looks for a file named “open” or “open.exe” in the default executable-file search path. There’s no standard “open.exe” file in Windows, so this error is what I’d expect. If you want to open the KML file according to its registered file association, use os.startfile(lines_kml_flyingpath).