def module_names(path: str, recursive: bool=False) ->list:
    """Return a list of modules which can be imported from path. 

    :param path: a directory to scan. 
    :type path: str
    :param recursive: Also return submodule names for packages. 
    :type recursive: bool
    :return:  a list of string pairs (module_name, module_file). 
    """
    pass
