Counting And Splitting Clauses In Python