Change flup by flipflop
PY3 compatible