Pattern Solving In Python A Namespace