code: def ifiles(irods_path):
      
      raw_output = subprocess.check_output(
          "ils -r --bundle {0}"
          "    | grep 'Bundle file:'"
          "    | awk '{{print $3}}'".format(irods_path),
          shell=True
      )
      filenames = raw_output.decode('ascii').strip().split("\n")
      return filenames
docs: Return a list of filenames for given iRODS path (recursively)