alter glob_match_with_print.py for more detail