Fix parent_class_name method when dealing with abstract classes

Small fix of #8