Transform the following shell script into a python program.
#!/usr/bin/env bash
for i in *.txt; do
    echo "Processing $i file..."
    cat $i
done
import sys
import os

for filename in os.listdir('.'):
    if filename.endswith('.txt'):
        print('Processing ' + filename + ' file...')
        with open(filename, 'r') as f:
            print(f.read())