Write A Recursive Function In Python