@classmethod
def serialize(cls, value):
    """
        Serialize a python object to graphson.

        :param value: The python object to serialize.
        """
    serializer = cls.get_serializer(value)
    if serializer:
        return serializer.serialize(value)
    return value
