Use True and False rather than 1 and 0.