class Action(object):
    def __init__(self, type, body, bot, keep_session):
        if (type not in ['inquiry','message'] or
            type(keep_session) is not type(True) ):
            raise ValueError(
                '__init__() is initialised by invalid attributes')
        self.type = type
        self.body = body
        self.bot = bot
        self.keep_session = keep_session

@@ -60,23 +60,23 @@
 t, keep_
-session
+context
 ):%0A     
@@ -141,23 +141,23 @@
 pe(keep_
-session
+context
 ) is not
@@ -363,23 +363,23 @@
 eep_
-session
+context
  = keep_
 sess
@@ -378,12 +378,12 @@
 eep_
-session
+context
 %0A

Rename the keep_session attr to reset_contexts