def __init__(self, name=None, rules=None):
super().__init__()<EOL>if name is None:<EOL><INDENT>name = self.__class__.__name__<EOL><DEDENT>self.name = name<EOL>if rules is not None:<EOL><INDENT>self.rules = rules<EOL><DEDENT>
Initializes holiday object with a given set a rules.  Normally
classes just have the rules defined within them.

Parameters
----------
name : str
    Name of the holiday calendar, defaults to class name
rules : array of Holiday objects
    A set of rules used to create the holidays.