Thermoelectrics optimization (Jupyter ipython notebook)