It should be
T = trans.average_density_of_states()
The reason is that the DOS, like the transmission, is an average over the k-points in the Brillouin zone sampling.
Are you familiar with the very useful command "dir"? It can really help in situations like this. You can insert "print dir(trans)" and then you will see all properties of the object "trans" :)