lose some manual iterations through lists
2f3360e
python provides a way to iterate through a list, there's no need to handle indices ourselves