def posplit(fname, rules):
    sections = make_sections(fname)
    rules.set_header(sections[0])
    rules.set_pofile(fname)
    print "SECTIONS: %s" % fname
    ix = 0
    for section in sections[1:]:
        section.apply_rules(rules)
        section.do_copy()
        ix += 1
        #print ix
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/l10n/bin/posplit.py/posplit/original