Here is a version that I use for HE
This uses async I/O for the most common operations
To use this you will need your Nuheat username and password along with your thermostat(s) id. You can find the thermostat ID at online. Go into the thermostat and it is the "Thermostat ID".