For a thermostat, the hardware design must be low cost nevertheless, inexpensive system on chip designs mean that python is still feasible the challenges of these designs is often related to minimizing the amount of secondary storage for this kind of system, you'll probably want to start with the kernel and add pieces, instead of starting with a distribution and removing pieces 