Scalar Function In Python