3d2d51b Make range usage Python 3 compatible (#1014220)

Authored and Committed by m4rtink 9 years ago
    Make range usage Python 3 compatible (#1014220)
    
    Range returns an iterator in Python 3, wrap it in list() so that
    code that expects a list keeps working.