pyterm execution fixed