Python Regex Replace With Lambda Theta