We've had a similar goal and were trying to create a tool to help students transition from Scratch to Python using an intermediary structured editor that provides scaffolds such as handling syntax.
Here's a research paper that we published on CodeStruct: https://dl.acm.org/doi/10.1145/3501712.3529733