code: def kernel_version():
      
      kver = check_output(['uname', '-r']).decode('UTF-8').strip()
      kver = kver.split('.')
      return (int(kver[0]), int(kver[1]))
docs: Retrieve the current major kernel version as a tuple e.g. (3, 13)