def get_filelist(dirname, pattern):
    return [f for f in os.listdir(dirname) if re.match(pattern, f)]
def get_filelist(dirname, pattern):
    return [f for f in os.listdir(dirname) if re.match(pattern, f)]