fixes copy_iso

fixes copy_iso after and condition,
also fixes pyflakes errors.

Change-Id: Ibbf2b9528d338356bd1eb9d03c35b1dc012aba01
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>