Make for loop more pythonic
Remove declaration of dict 'workflows' as a global variable