rename compat._im_class to compat.get_im_class because it is not private