For Loop With 3 Parameters In Python