Fix doPost handler generation in python script

One condition was ommited when handling doPost generator
Merge pull request #22 from gregguche/fix_dopost

Fix doPost handler generation in python script