<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def evaluate(condition):
 """ Evaluate simple condition. True False True True False True True True Args: condition (str):
 Python condition as string. Returns: bool: True when condition evaluates to True. """

        success = False
        if len(condition) > 0:
            try:
                rule_name, ast_tokens, evaluate_function = Condition.find_rule(condition)
                if not rule_name == 'undefined':
                    success = evaluate_function(ast_tokens)
            except AttributeError as exception:
                Logger.get_logger(__name__).error("Attribute error: %s", exception)
        else:
            success = True
        return success