Python: boolean experiment 2 -> 3