Your code will add only new Gateway. Do you know how to set default device to that gateway using Python script?