Fixed an output fails in py helper script
Modified the send api of network (would fail to compile)
Modified : protocols generation script (make output directory if not exists)