Refactor: CTS: Clean up "with"-related pylint warnings in cts-exec.
- Use with when opening the daemon output file, which also means we can get rid of the redundant encoding and unnecessary import.
- Ignore other with warnings because of how we're interacting with the spawned subprocess.