def is_extension_module(filename):
 return (os.path.splitext(filename)[1].lower() in ('.so', '.pyd'))

def is_extension_module ( filename ) : return ( os . path . splitext ( filename ) [ 1 ] . lower ( ) in ( '.so' , '.pyd' ) )
return whether the given filename is an extension module .