`fnmatch.fnmatch` may be a friendlier choice here