Use kv var in for loop
Add support for OS_NETWORK_NAME = None