end current loop python