Passing List In Recursive Function Python