from maya import cmds

ref_list = cmds.ls(rf = True)

for ref in ref_list:
    cmds.file(loadReference=ref)