String Between Two Characters Python Code