Python Regex Replace With Matched