update py.re sample for parenthesis matching