Dot Product In Python Using Numpy For Arrays