You should change all of this `if`s to use `if vote is None:`, `elif vote`, `else`.