attempt to improve interaction with pip as per https://github.com/pypa/pip/issues/335