I'd drop all the brackets: 

    if not task or not self.config['alm_standard_workflow']: