diff --git a/beat/backend/python/algorithm.py b/beat/backend/python/algorithm.py
index 22b938c866a9de672c37d36952772ca5e36bd689..971d957f0eb45b90985d4b0de1ce0dc616517d60 100644
--- a/beat/backend/python/algorithm.py
+++ b/beat/backend/python/algorithm.py
@@ -204,7 +204,7 @@ class Runner(object):
 
         # The method is optional
         if hasattr(self.obj, 'prepare'):
-            if self.algorithm.type == Algorithm.AUTONOMOUS:
+            if self.algorithm.is_autonomous:
                 self.prepared = loader.run(self.obj, 'prepare', self.exc, data_loaders.secondaries())
             else:
                 self.prepared = loader.run(self.obj, 'prepare', self.exc, data_loaders)
@@ -252,7 +252,7 @@ class Runner(object):
                 return loader.run(self.obj, 'process', self.exc, inputs, data_loaders,
                                   outputs_to_use)
 
-            elif self.algorithm.type == Algorithm.AUTONOMOUS:
+            elif self.algorithm.is_autonomous:
                 run_args = [self.obj, 'process', self.exc, data_loaders, outputs_to_use]
 
                 has_loop_arg = utils.has_argument(self.obj.process, 'loop_channel')