'Register ``serializer`` object under ``name``.
Raises :class:`AttributeError` if ``serializer`` in invalid.
.. note::
``name`` will be used as the file extension of the saved files.
:param name: Name to register ``serializer`` under
:type name: ``unicode`` or ``str``
:param serializer: object with ``load()`` and ``dump()``
methods'

def register(self, name, serializer):

    getattr(serializer, u'load')
    getattr(serializer, u'dump')
    self._serializers[name] = serializer
