monkey patch before importing subprocess