Get Substring Between Two Characters Python