def METHOD_NAME(self, **kw):
    '''
    Handles parsing the keywords and returns a scan zone definition document
    '''
    if 'name' in kw:
        # Validate that the name is a string
        self._check('name', kw['name'], str)
    if 'description' in kw:
        # validate that the description is a string.
        self._check('description', kw['description'], str)
    if 'ips' in kw:
        # convert the ips list into the comma-seperated list of ips that
        # the API expects to receive.
        kw['ipList'] = ','.join([self._check('ip', i, str)
            for i in self._check('ips', kw['ips'], list)])
        del(kw['ips'])
    if 'scanner_ids' in kw:
        # convert the list of scanner ids into a list of documents
        # containing the scanner id.
        kw['scanners'] = [{'id': self._check('id', i, int)}
            for i in self._check('scanner_ids', kw['scanner_ids'], list)]
        del(kw['scanner_ids'])
    return kw