Semi-general limit setting scripts based on CMS HiggsAnalysis tool