Program For Loop In Python Using Piping