[tools] Support using ^ for pow operation

Willie's target auidence shouldn't be forced to learn python syntax just to
calculate stuff.