Factory methods to create Record from pymarc.Record object.

def from_record(cls, record):
        """
        Factory methods to create Record from pymarc.Record object.
        """
        if not isinstance(record, pymarc.Record):
            raise TypeError('record must be of type pymarc.Record')
        record.__class__ = Record
        return record