from nltk.tree import Tree
bracket_parse = '(S (VP (VB get) (NP (PRP me)) (ADVP (RB now))))'
ptree = Tree.fromstring(bracket_parse)
ptree
for subtree in ptree.subtrees():
    pass
Grammar rule extraction from parsed result