fixed post.py errors