'Returns a generator with all environmental vars with prefix PIP_'

def get_environ_vars(self, prefix='PIP_'):

    for (key, val) in os.environ.items():
        if key.startswith(prefix):
            (yield (key.replace(prefix, '').lower(), val))
