cast range to list for python3
Merge pull request #588 from sciunto/range

FIX: cast range to list for python3 compatibility