Implement 1D convex minimization in Python | Uber