Dot Product Of Vectors In Python