Something like this should work. BTW there are a already a couple of questions like this.
def read_directory():
matches =[]
directory = '/home/akallararajappan/www.mangalam.com/agriculture'
for root, dirs, files in os.walk(directory):
for file in files:
if file.endswith('.html'):
matches.append(os.path.join(root, file))
return matches