Fix "global name 'hub' is not defined"
Merge pull request #648 from wolever/patch-1

Fix "global name 'hub' is not defined"