def normalize_so_name(name):
 if ('cpython' in name):
  return os.path.splitext(os.path.splitext(name)[0])[0]
 return os.path.splitext(name)[0]

def normalize_so_name ( name ) : if ( 'cpython' in name ) : return os . path . splitext ( os . path . splitext ( name ) [ 0 ] ) [ 0 ] return os . path . splitext ( name ) [ 0 ]
handle different types of python installations .