Recursive Approach In Python List