I want to parse a STIX pattern to get the key-value pairs and "AND OR" logic. Would you give some suggestions to parse a STIX pattern ? Which APIs to choose?