human
Complete the below
def get_modules():

    ''''Returns the list of module names'
    '''
assistant
#Here is the Python code you requested.
    def listdir(dir):
        def clean(name):
            name = os.path.basename(name)
            if (name[(-4):] == '.zip'):
                name = name[:(-4)]
            return name
        def is_really_module(name):
            for mname in MANIFEST_NAMES:
                if os.path.isfile(opj(dir, name, mname)):
                    return True
        return map(clean, filter(is_really_module, os.listdir(dir)))
    plist = []
    initialize_sys_path()
    for ad in ad_paths:
        plist.extend(listdir(ad))
    return list(set(plist))