prototyping for low-level apis for python to communicate with c server.

Author:yangyingchao, 2013-02-19