Import sys module before using it