@staticmethod
def var_set(session, **kwargs):
    """
        Sets the given variables or prints the current ones. "set answer=42"
        """
    if not kwargs:
        for name, value in session.variables.items():
            session.write_line('{0}={1}'.format(name, value))
    else:
        for name, value in kwargs.items():
            name = name.strip()
            session.set(name, value)
            session.write_line('{0}={1}', name, value)
