added python test case li_std_except_as_class for SF bug 1295
added patch for SF bug #1295