cythongen support for variables

This is my work towards exposing variables (other than enums) as discussed on #156.