Use logical operators and avoid specific reference to `True` and `False`.  So `not_last_year = ~last_year` or `not last_year`.  I prefer the former since the precedence is more obvious.