The issue stems from the OAuth authentication portion of my code. I truncated a bunch of it and cut at the part where I get my error. My specific error is "gaierror: (11001, 'getaddrinfo failed'". I really have no idea why. I'm using Leah Culver's OAuth library (http://oauth.googlecode.com/svn/code/python/oauth/). Pretty much following the code in client.py's run_example and using the SimpleOAuthClient she wrote (which extends OAuthClient in oauth.py).
server = 'http://twitter.com'
port = 80
#URLs
requestTokenURL = 'http://twitter.com/oauth/request_token'
accessTokenURL = 'http://twitter.com/oauth/access_token'
authorizationURL = 'http://twitter.com/oauth/authorize'
...
## Setup
self.client = SimpleOAuthClient(self.server, self.port, self.requestTokenURL, self.accessTokenURL, self.authorizationURL)
self.consumer = oauth.OAuthConsumer(publicKey, secretKey)
self.signatureMethodPlaintext = oauth.OAuthSignatureMethod_PLAINTEXT()
self.signatureMethodHmacSha1 = oauth.OAuthSignatureMethod_HMAC_SHA1()
## Get request token
print '\nGet request token!'
oauthRequest = oauth.OAuthRequest.from_consumer_and_token(self.consumer, http_url=self.client.request_token_url, http_method='POST')
oauthRequest.sign_request(self.signatureMethodPlaintext, self.consumer, None)
print 'Request via headers!'
print 'Parameters: %s' % str(oauthRequest.parameters)
token = self.client.fetch_request_token(oauthRequest)
...