call the method connection.introspection.get_field_type with 2 arguments: second element of row and row, substitute the result for field_type.
field_type = connection . introspection . get_field_type ( row [ 1 ] , row )