Python Multiple If Statements On One Line