deal with py27 and mixed int/str fields