Python Regular Expression Pattern Matching Game