Support older PYTHON_API_VERSIONs for backwards compatibility.
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index f20adcb..00e4e9e 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -257,8 +257,10 @@
 			nulltuple,	/* consts */
 			nulltuple,	/* names */
 			nulltuple,	/* varnames */
+#if PYTHON_API_VERSION >= 1010
 			nulltuple,	/* freevars */
 			nulltuple,	/* cellvars */
+#endif
 			filename,	/* filename */
 			name,		/* name */
 			lineno,		/* firstlineno */
@@ -290,8 +292,11 @@
 			tstate,			/*back*/
 			c,			/*code*/
 			tstate->frame->f_globals,	/*globals*/
-			NULL,			/*locals*/
-			NULL);                  /* closure */
+			NULL			/*locals*/
+#if PYTHON_API_VERSION >= 1010
+			,NULL			/*closure*/
+#endif
+		);
 	if (f == NULL)
 		return NULL;
 	tstate->frame = f;