Convex Functions In Python Programming