Add python script for generating brige and wrapper code.

For share mode in core, use python script to generate bridge and wrapper code.

BUG=