Adds new post and category - python