Added import sys.

File uses sys.exit and sys.stderr but sys module was never imported. So I've added the import line at the top.