This is code that was born while working on https://stackoverflow.com/questions/34504970/non-blocking-read-on-os-pipe-on-windows
It consists of ospipen.py module with a sigle function:
def pipe_no_wait(pipefd):
""" pipefd is a integer as returned by os.pipe """
ossub.py that tests the concept on subprocess.PIPE, and Go program for that subprocess.
Everything is in public domain.
Nice solution, you might have just saved me few days..:)