code: def create_commandcall(prop, commands, command):
          
          cc = {
              'commands': commands,
              'call': command
          }
  
          if hasattr(prop, 'enable_environment_macros'):
              cc['enable_environment_macros'] = prop.enable_environment_macros
  
          if hasattr(prop, 'poller_tag'):
              cc['poller_tag'] = prop.poller_tag
          elif hasattr(prop, 'reactionner_tag'):
              cc['reactionner_tag'] = prop.reactionner_tag
  
          return CommandCall(cc)
docs: Create CommandCall object with command
  
          :param prop: property
          :type prop: str
          :param commands: all commands
          :type commands: alignak.objects.command.Commands
          :param command: a command object
          :type command: str
          :return: a commandCall object
          :rtype: alignak.objects.commandcallitem.CommandCall