Python If Statement - Conditional Logic or Branching