Update c code to be wrapped by a python script.

All the actual code is just going to be a python wrapper around
report_tag.c now, which seems like the right way to do things and keeps
the C codebase fairly small.