def_v(self,key):ifkeyinself._kwargs:returnself._kwargs[key]envkey='TWITTER_{0}'.format(key.upper())ifenvkeyinos.environ:returnos.environ[envkey]raiseRuntimeError('missing authentication information: {0} must be specified as a constructor argument or environment variable ({1})'.format(key,envkey))