Inline If Statement Python Syntax