pat a shell pattern. See fnmatch.fnmatchcase. Print the
        results to stdout.

def query_names(self, pat):
        """pat a shell pattern. See fnmatch.fnmatchcase. Print the
        results to stdout."""

        for item in self.chnames.items():
            if fnmatch.fnmatchcase(item[1], pat):
                print item