def import_exploit(path):
 try:
  module = importlib.import_module(path)
  return getattr(module, 'Exploit')
 except (ImportError, AttributeError, KeyError) as err:
  raise RoutersploitException("Error during loading '{}'\n\nError: {}\n\nIt should be valid path to the module. Use <tab> key multiple times for completion.".format(humanize_path(path), err))

def import_exploit ( path ) : try : module = importlib . import_module ( path ) return getattr ( module , 'Exploit' ) except ( ImportError , AttributeError , KeyError ) as err : raise RoutersploitException ( "Error during loading '{}'\n\nError: {}\n\nIt should be valid path to the module. Use <tab> key multiple times for completion." . format ( humanize_path ( path ) , err ) )
import exploit module .