PyFileSearch is a simple python library that can be used for searching files and directories recursively. The functions in the library can be used to get list of all files, list of files of a particular filetype, dictionaries of filetypes and associated files and the like.
Used this site for reference.