'Extract info from a header keyword line (#K)'

def extract_keyword_line(self, line):

    m = self.re_header_keyword.match(line)
    if m:
        vals = m.group('stuff').strip().rsplit(None, 2)
        keyword_dict = {'units': vals[(-2)], 'format': vals[(-1)], 'value': (vals[0] if (len(vals) > 2) else '')}
        return (m.group('name'), keyword_dict)
