modify _validate_row to validate python datatypes