Explorations in IF in Python