consider using issubclass()...?