Create a copy of the mapping, including formatting information

def copy(self):
        """ Create a copy of the mapping, including formatting information """
        dup = type(self)()
        dup._indices = OrderedDict(
            (k, list(v)) for k,v in six.iteritems(self._indices)
        )
        dup._lines = self._lines.copy()
        return dup