follow pep8: Don't compare boolean values to True or False using ==.
Yes:   if greeting:
No:    if greeting == True:
Worse: if greeting is True: