get_model_attributes function

Generates list with attributes of a model