Python For Loop Using Index Images