Created another post for the list input issue.
TypeError: iteration over non-sequence of type NoneType