Fix Python thinking a boolean is an int