speedup TP.computeOutput()  (python part)

Fixes #1672 
the slowes is `numpy.astype()` which can be omitted for default case.