<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_batch(self, batch, fg, bg, bgblend=1, nullChar=False):
 """ Try to perform a batch operation otherwise fall back to _set_char. If fg and bg are defined then this is faster but not by very much. if any character is None then nullChar is True batch is a iterable of [(x, y), ch] items """

        for (x, y), char in batch:
            self._set_char(x, y, char, fg, bg, bgblend)