def to_location(location):
        """Serializes location to string
        :param location: object to serialize
        :return: string
        """
        if not location:
            raise SbgError('Location is required!')
        if isinstance(location, six.string_types):
            return location
        else:
            raise SbgError('Invalid location parameter!')