refactored import() into prepare_class and create_attributes