Python Numpy Apply Function To Each Element In A Seven Element