Python program to create new posts