<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _replace_variables(data, variables):
 """Replace the format variables in all items of data."""

    formatter = string.Formatter()
    return [formatter.vformat(item, [], variables) for item in data]