How To Compare Boolean In Python