Replace Using Regex Python Documentation Functions