Added missing import

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