Repeat Loop In Python Images