use of fnmatch