Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c
index 68f9b48..14f807c 100644
--- a/Mac/Modules/macosmodule.c
+++ b/Mac/Modules/macosmodule.c
@@ -377,7 +377,7 @@
 			Py_DECREF(args);
 		}
 		if (res == NULL) {
-			fprintf(stderr, "Exception in MacOS_HighLevelEventProc:\n");
+			PySys_WriteStderr("Exception in MacOS_HighLevelEventProc:\n");
 			PyErr_Print();
 		}
 		else