fixed dict access in update.py
rewrite of weather
rewrite of weather