integrate ace and make brython code more clear