xrange / reduce

Still trying updates to get xrange and reduce working in python3