Update SentenceGenerator.py

Added a variable to keep track of the previous line to prevent doubles.