Get AST tokens for Python condition.

        Returns:
            list: list of AST tokens

def get_tokens(condition):
        """
        Get AST tokens for Python condition.

        Returns:
            list: list of AST tokens
        """
        try:
            ast_tokens = list(ast.walk(ast.parse(condition.strip())))
        except SyntaxError as exception:
            Logger.get_logger(__name__).error("Syntax error: %s", exception)
            ast_tokens = []
        return ast_tokens