ported window evaluator to python