fixed the bug while  setting the python value in the ChoiceField.