Fix use of variable 'time'.

Pythons scoping is the worst thing.  This is why we need types.