Fix pyflakes warnings in utils.py

When running `make qa` (which is a dependency of `make rpms`), pyflakes throws a warning:

> cobbler/utils.py:1965: import 'os' from line 24 shadowed by loop variable