Integration Partial Function Method In Python