coreserver: Catch EWOULDBLOCK on receive

Signed-off-by: Michael Buesch <m@bues.ch>
subprocess_wrapper: use os.popen

Signed-off-by: Michael Buesch <m@bues.ch>