Fixed bug in Extrac_from_cos with assigning attribute to cls instead of object instance