def _preprocessPython(self, python):
        '''
        preprocess python statements or expressions to deal with
        interspersed simplified syntax. Helper for _compile.
        '''
        def subst(mo):
            expr = mo.group(1)
            return "_resolveSimple__('%s')" % expr

        isFor = self.forInRe.match(python)
        if isFor:
            forClause, restClause = isFor.group(1), isFor.group(2)
            if self.forInDottedRe.match(forClause):
                self.error(python,
                       "Sorry, Yaptoo cannot handle $-style with dots in loop control variables." + \
                       "Please use explicit Python syntax (e.g use #for x['y'] instead of #for $x.y )"
                          )
            # if we got here, there are no dotted $-style expressions in 'for .. in'
            return forClause.replace('$','') + self.simpleSubstitutionRegex.sub(subst, restClause)
        else:
            return self.simpleSubstitutionRegex.sub(subst, python)

        preprocess python statements or expressions to deal with
        interspersed simplified syntax. Helper for _compile.
        
recipes/Python/465508_Yaptoo_Yaptu_outrageously_obfuscated__or_yet/recipe-465508.py