-cleaned up python code, only single connection made during hourly updates, should be faster