How To Write Regex Pattern In Python