def list_interfaces(module):
 iface_names = []
 for (k, v) in sorted(list(module.__dict__.items())):
  if (inspect.isclass(v) and issubclass(v, Interface)):
   iface_names.append(k)
 return iface_names

def list_interfaces ( module ) : iface_names = [ ] for ( k , v ) in sorted ( list ( module . __dict__ . items ( ) ) ) : if ( inspect . isclass ( v ) and issubclass ( v , Interface ) ) : iface_names . append ( k ) return iface_names
create a network interface .