Passing List In Function Python Syntax For Loop