code: def _consume_python_token(self, token):
          
          ret = []
          line, col = token[3]
          if line > 1:
              ret = self._buffer[:line-1]
              self._buffer[:line-1] = []
          ret.append(self._buffer[0][:col])
          self._buffer[0] = self._buffer[0][col:]
          return ''.join(ret)
docs: Consume the buffer up to the given token (from _peek_python_tokens).
  
          Returns a single string that was consumed.