Added optional datatype argument to FieldPythonData.
Fixed comparison operators in Model.