Changed 'types' and 'type' to 'data_types' and 'data_type' respectively to avoid using Python keyword 'type' (even though Python lets us do that).