stub_code generator based on pycparser