get_attributes function

Returns attributes for all params