Serializes a Session as a Variant
The result of this function may be passed to Session.from_variant to recreate a Session.
The resulting variant will not be floating.
a Session
a Variant