Fix stop-flag name for Python3 compatibility