Added missing import

Added missing import 'sys' needed by sys.stderr.write() at line 59