Fix a few regressions in utils and test

The test suite wasn't importing os. Additionally, error checking
for Weather Underground forecast responses was looking to the wrong
key.