Minimize python 3rdparty deps.