def condtopy(cond):
    """
        >>> condtopy('line 2 is more than line 1')
        'line2>line1'
        """
    delim = ' is more than '
    if delim in cond:
        lh, rh = cond.split(delim, 1)
        lh = lh.replace(' ', '')
        rh = rh.replace(' ', '')
        return '%s>%s' % (lh, rh)
    raise Exception('dunno condition [%s]' % (cond,))
