Making salt.modules.chef python3 compatible

Bad list call, it is in an itterator