Fixed XLS import on python 3. Optimized loop

Fixed XLS import. Changed xrange function to range for use with python3.
Throw out from loop unneeded "if" statement.