code: def build_on_start(self, runnable, regime, on_start):
          
  
          on_start_code = []
  
          for action in on_start.actions:
              code = self.build_action(runnable, regime, action)
              for line in code:
                  on_start_code += [line]
  
          return on_start_code
docs: Build OnStart start handler code.
  
          @param on_start: OnStart start handler object
          @type on_start: lems.model.dynamics.OnStart
  
          @return: Generated OnStart code
          @rtype: list(string)