create read.py to output posts.txt