Fixed list insertion

lists now insert correctly without error
range to xrange

converted range
fixed my dumb fix on range
commit me