Read from a PIPE of file in Python
Pretty useful to have and know and I always find something, use it, and then forget where I used it (and how) but only remember that I did it. Sigh.
Here are several useful links:
How do I make python programs behave like proper unix tools? - I like ixtmixllix's approach …