Extract Substring Between Two Characters Python