smarthome.py: rearrange timezone handling