Fixed an error in the isEmpty generated Python ('not' in the wrong spot).