Recursive Approach In Python A Namespace