import sys before using it

We forgot to import sys before using it.