from os.path import isdir
from os import listdir

def try_to_find_file(where, text):
  if not isdir(where):
    # Then where is just a file
    f = open(where,'r')
    s = f.read()
    if text in s:
      print where
    f.close()
  else:
    files_in_folder = listdir(where)
    for filename in files_in_folder:
      try_to_find_file(where + '/' + filename, text)

def main():
  try_to_find_file("actual_stuff", "Gretel")

main()

