Python: Get list of files containing a specified string/extension and print to stdout