Added some protocol support coded in C and c++ in Python.