Replace Using Regex Python Documentation Dictionary