def get_os_name():
 OS = platform.system().lower()
 if OS.startswith('linux'):
  DISTRO = platform.linux_distribution()[0]
  if DISTRO:
   OS = (OS + ('-%s' % DISTRO.split()[0].lower()))
 return OS

def get_os_name ( ) : OS = platform . system ( ) . lower ( ) if OS . startswith ( 'linux' ) : DISTRO = platform . linux_distribution ( ) [ 0 ] if DISTRO : OS = ( OS + ( '-%s' % DISTRO . split ( ) [ 0 ] . lower ( ) ) ) return OS
finds out os name .