About my question number 1., I found another very similar question:
But I could not see if the answer is “definitively not” or if there is any reasonable way to start Javascript code from Python, without extra callback that has to be separately triggered.