Modular Pattern Matching Rules Python Idle