Python: add support for pip's --exists-action option