python 2.4 doesn't have x=foo if a else b