Import of stderr from sys module was missing