helpers.regex_helper: migrate range() calls to xrange ones
Merge branch 'remove-range'