Set the turtle mode and perform a reset. mode is one of the strings “standard”, “logo” or “world”. If mode is not given, return the current mode.
>>> mode("logo") # resets turtle heading to north >>> mode() 'logo'
turtle/mode
mode