added python-esq if statement for the id field.