Teacher Forcing Algorithm Example In Python