Import sys when checking for compatibility