Add missing import of sys in ms_schema.py