python decorator to split test code to a percentage of cases