Eggdrop solution, but not working for large b/c Python limit on list size at 536870912