replaced in line conditional with awesome boolean expression that works ...

...in python 2.4