Generate extern and struct item defns into separate headers.

This replaces the existing .lst files, and makes it much easier
to integrate with frozen libraries with existing applications
where Python is embedded, but does not run as main (such as
gdb).