[ADD] in Python add state field for workflow