import sys

Module sys is used but it is not imported.