Numpy Inner Product Of Characters