added python code for posting