Patch #1810 by Thomas Lee, reviewed by myself:
allow compiling Python AST objects into code objects
in compile().
diff --git a/Include/Python-ast.h b/Include/Python-ast.h
index a1033ee..8be26f2 100644
--- a/Include/Python-ast.h
+++ b/Include/Python-ast.h
@@ -501,3 +501,5 @@
 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
 
 PyObject* PyAST_mod2obj(mod_ty t);
+mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena);
+int PyAST_Check(PyObject* obj);