How to get the opposite of a boolean in python