PYTHON : In Python how should I test if a variable is None, True or False