mapping = {'Integer': int, 'String': str, 'Float': float, 'Unicode': str}
results = []
for row in csv:
    datatype = row[0]
val_string = row[1]
results.append(mapping[datatype](val_string))
return results
Calling types via their name as a string in Python