python implementation for tooManyVPs added