Recursive Function In Python Syntax If Statements