Python3 range concatenate fix

Python3 range returns generators which cannot be concatenated