Fixed issue where 'dict' was being redefined