parse_labels function

Parse labels from REDCap metadata into usable formats