added synchronized pub-sub demo with c
added synchronized pub-sub demo with python
modified sync-pub-sub implementation