Python Extract String Between Two Patterns That Cover Up