extract attrs and method signatures from classes