void printErr(String str) {
		try {
			getSystemState().stderr.invoke("write", new PyString(str + "\n"));
			getSystemState().stderr.invoke("flush");
		}
		catch (PyException e) {
			// if the python interp state's stdin/stdout/stderr is messed up, it can throw an error 
			Msg.error(this, "Failed to write to stderr", e);
		}
	}
Prints the given string to the interpreter's error stream with a newline
appended.

@param str The string to print.
Ghidra/Features/Jython/src/main/java/ghidra/jython/GhidraJythonInterpreter.java