def correct_pvals(pvals, method="<STR_LIT>", verbose=False):
if verbose:<EOL><INDENT>sys.stderr.write("<STR_LIT>")<EOL><DEDENT>pvalstr = "<STR_LIT:U+002C>".join([str(i) for i in pvals])<EOL>r("<STR_LIT>" + pvalstr + "<STR_LIT:)>")<EOL>return list(r("<STR_LIT>" + method + "<STR_LIT>"))<EOL>
Apply multiple hypothesis testing correction to a list of p-values.

:param pvals: a list or similar iterable containing the p-values to correct;
              can be floats or strings.
:param method: which correction method to use. Supported options are: BH
:param verbose: if True, output status messages about the conversion to stderr

:return: list of corrected p-values