Numpy Map Function Over Array In Python Example