The BlueprintCallable function in SubSystem is not static, and the subsystem is not “always be there”. So we need to get the subsystem first, then call the function. For instance:
world = unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem).get_editor_world()