def get_mung_locs(anc, code, output_bucket):
    """ Convenience function to obtain the expected locations for munged scripts.

    Parameters
    ----------
    anc : :obj:`str`
        Ancestry prefix.
    code : :obj:`str`
        Phenotype code.
    output_bucket : :obj:`str`
        The bucket in which the mugning output is stored.

    Returns
    -------
    :obj: `str` with file location, :obj:`str` with log location
    """
    file_loc = output_bucket + anc + '/munged_sumstats/' + code + '.sumstats.gz'
    log_loc = output_bucket + anc + '/munged_sumstats/' + code + '.log'
    return file_loc, log_loc