Any of those help itertools.permutations() wants an iterable (e.g. a list) and a length as its arguments, so your data structure needs to reflect that, but you also need to define what you are trying to achieve here. For example, if you wanted to read a CSV file and produce permutations on every individual CSV field you could try this:
with open('some.csv', newline='') as f:
reader = csv.reader(f)
w = 
for row in reader:
wish of those help I believe the problem here is the Same Origin Policy. You are attempting to make a request to a domain that is different than the one that originated the request. Some websites specify headers which allow this, but the headers returned here are missing the Access-Control-Allow-Origin header.