def __init__(self, api_key, secret=None, token=None, store_token=False, cache=False, **kwargs): FlickrAPI.__init__(self, api_key, secret=secret, token=token, store_token=store_token, cache=cache, **kwargs) # Thread-local HTTPConnection, see __flickr_call self.thr = ThreadLocal() if token: return (token, frob) = self.get_token_part_one(perms='read') if not token: print "A browser window should have opened asking you to authorise this program." raw_input("Press ENTER when you have done so... ") self.get_token_part_two((token, frob))