Fixed parse_class_name bug

Fixed a bug that caused an exception if you didn’t define a
parse_class_name class method in your subclass.