identify_filenames: move re import to top