new to working with dnac and python etc

with Mgig cards and non mgig cards specifying int ranges makes it more difficult. Is there a way to automate this with running commands against the switch or without user input?

Is there a way to call on a csv file for variables so I do not have to input them every time I bring up a switch in my environment?