Bootstrapping SG in houdini 20.5

Hello,
So I’ve been trying to bootstrap SG in Houdini 20.5 and it looks straight forward, until it isn’t! Now Just to be clear, I can initialize the FPT menu in Houdini when I open the app via FPT desktop. I’m just trying to recreate the process with python code inside Houdini. I have got 2 problems here:

  1. Does the menu appear inside Houdini when I create an engine? or should other configurations happen as well?
  2. I managed to open the file open dialog (when a project context is set) and when I click on new file for a specific task, the dialog closes and everything seems to be fine. But when I checked the context, I realized that, well, it hasn’t changed. Also I can’t do this a second time without destroying and recreating the engine because I get a “open in main thread” error even though I’m doing that!
    I know these are trivia questions to ask here, and I’m pretty sure I’m missing a key configuration step here. I’ve been testing and searching for around a week and haven’t found much. I’ve attached an example of the code I run inside the python shell in Houdini:
import sgtk
sg = sgtk.authentication.ShotgunAuthenticator()
user = sg.get_user()
mgr = sgtk.bootstrap.ToolkitManager(sg_user=user)
mgr.plugin_id = "basic.houdini"
mgr.base_configuration = "sgtk:descriptor:app_store?name=tk-config-basic"
engine = mgr.bootstrap_engine("tk-houdini", entity={"type": "Project", "id": <PROJECT_ID>})
app = engine.apps.get('tk-multi-workfiles2')
engine.excecute_in_main_thread(app.show_file_open_dlg)

I’m using Houdini 20.5.332 and tk-houdini 1.9.3