Numpy Array Apply Function To Each Element On The Periodic Table