Python Get Dimension Of Numpy Array To Scalar Definitions Of Love