parameters: Change iteration with range and len
parameters: Change iteration with range and len

Instead of iterating over list with range() and len(), use the more
Pythonic way of using enumerate().  Uncovered by Codacy.

Signed-off-by: Esben Haabendal <da90c138e4a9573086862393cde34fa33d74f6e5@haabendal.dk>

XD-embedded/xd-docker,esben/xd-docker,esben/xd-docker,XD-embedded/xd-docker