This function finds out all the root to leaf paths
def printPathsRecur ( node , path , maxm , pathlen ) : NEW_LINE INDENT global f NEW_LINE if ( node == None ) : NEW_LINE INDENT return NEW_LINE DEDENT DEDENT