Numerial-Optimization using Python