Indentation works correctly now with a python script and a "when" snippet.