def _parse_keys(row, line_num):
        """ Perform some sanity checks on they keys

        Each key in the row should not be named None cause
        (that's an overrun). A key named `type` MUST be
        present on the row & have a string value.

        :param row: dict
        :param line_num: int
        """

        link = 'tools.ietf.org/html/rfc4180#section-2'

        none_keys = [key for key in row.keys() if key is None]

        if none_keys:
            fail('You have more fields defined on row number {} '
                 'than field headers in your CSV data. Please fix '
                 'your request body.'.format(line_num), link)

        elif not row.get('type'):
            fail('Row number {} does not have a type value defined. '
                 'Please fix your request body.'.format(line_num), link)
Perform some sanity checks on they keys

        Each key in the row should not be named None cause
        (that's an overrun). A key named `type` MUST be
        present on the row & have a string value.

        :param row: dict
        :param line_num: int