def main():
    dllname = idc.AskStr('kernel32', "Enter module name")
    if not dllname:
        print("Cancelled")
        return

    imports, R = find_import_ref(dllname)
    for k, v in R.items():
        print(imports[k][1])
        for ea in v:
            print("\t%x" % ea)

# -----------------------------------------------------------------------
dataset/ETHPy150Open EiNSTeiN-/idapython/Scripts/ImpRef.py/main/original