network automation using python