Django serializer mapping and namedtuple caching