Store posts in datastore + python refactor