Python Get String Between Two Strings Codeforces