Update tutorial script to make it compatible with new emInit