Python Extract Substring Between Two Characters