Fix x/y/weight list in range calculation

Unpacking the list generates a "too many values to unpack error" because the list holds three-value tuples and the unpacking is only two. (I'm not super Python-fluent these days, maybe this is different behavior between Python versions? I'm on 2.6.5.)