code: def lookup_family_by_name(name):
      
      for ops in nl_list_for_each_entry(genl_ops(), genl_ops_list, 'o_list'):
          if ops.o_name == name:
              return ops
      return None
docs: https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/mngt.c#L106.
  
      Positional arguments:
      name -- string.
  
      Returns:
      genl_ops class instance or None.