Python Regex Create Pattern Brush