def reset_pst(pst_name):
    pst_name = str(pst_name)
    pst.initialize(str(pst_name))
    print "reset pst of name", pst_name
def buildTree(pst_name):
    pst_name = str(pst_name)
    pst.initialize(str(pst_name))
    events = mp.events
    for event in events:
        add_state(pst_name, event)