Use range instead xrange to keep python 3.X compatibility

xrange is replaced by range in python3. Lists that be created
in the test cases are short, so just use range instead.

closes-bug: #1291191

Change-Id: I8e604ea62150905563cb90aa0d227b11628e9ecc
Fix misspelled impi to ipmi

There was a function with the name misspelled which error was
carry on to other tests in the code due to code completion.

s/impi/ipmi/g

Change-Id: I92e4bb93a09f779f21ceb4f16e7f865976a42ec0
Merge "Use range instead xrange to keep python 3.X compatibility"
Merge "Fix misspelled impi to ipmi"