Is there an issue with Python version compatibility here?  Can we use the "statement1 if cond else statement2" syntax safely?