Passing List In Function Python Syntax If Else Statement