Use ``.sum()`` and ``.T`` instead of ``np.transpose()`` and ``n.sum()``
minor