Config devices with the new py code