We need to patch python to close fd's intelligently.

Until we do that this hackaround will have to suffice.