Set Default Function In Python Syntax For Loop