more top sort, and pyth reduce
ack