add support for network Mode and its py-agent tests