def _parse_repr(self):
         """
         turn something like "orbit:outer(orbit:inner(star:starA, star:starB), star:starC)"
         into ['orbit:outer', ['orbit:inner', ['star:starA', 'star:starB'], 'star:starC']]
         """

         repr_ = self.get_value()
         repr_str = '["{}"]'.format(repr_.replace(', ', '", "').replace('(', '", ["').replace(')', '"]')).replace(']"', '"]').replace('""', '"').replace(']"', ']')
         return json.loads(repr_str)
def _parse_repr ( self ) : repr_ = self . get_value ( ) repr_str = '["{}"]' . format ( repr_ . replace ( ', ' , '", "' ) . replace ( '(' , '", ["' ) . replace ( ')' , '"]' ) ) . replace ( ']"' , '"]' ) . replace ( '""' , '"' ) . replace ( ']"' , ']' ) return json . loads ( repr_str )
turn something like "orbit:outer(orbit:inner(star:starA, star:starB), star:starC)"
         into ['orbit:outer', ['orbit:inner', ['star:starA', 'star:starB'], 'star:starC']]