python continue for loop after if