@staticmethod
def _reduce_datetimes(row):
    """Receives a row, converts datetimes to strings."""
    row = list(row)
    for i, val in enumerate(row):
        if hasattr(val, 'strftime'):
            row[i] = val.strftime('%Y-%m-%d %H:%M:%S')
        elif hasattr(val, 'isoformat'):
            row[i] = val.isoformat()
    return tuple(row)
