build-in python func is enough, no need for numpy