Python Regex Replace With Variable Products