Vectorized and other numerical Python functions