Why is `sys` imported?  It isn't used here, although I'd expect it to be.