current_option = request.GET.get('option', options[0])
if not current_option in options:
    current_option = options[0]
else:
    oindex = options.index(current_option)
other_option = False if len(options) != 2 else options[(oindex + 1) % 2]
Python: Pick other value