#NEWLINE# def add_default_headers( self , headers ) : #NEWLINE# #INDENT# user_b64 = base64 . b64encode ( b ( ( '%s:%s' % ( self . user_id , self . key ) ) ) ) #NEWLINE# headers [ 'Authorization' ] = ( 'Basic %s' % user_b64 ) #NEWLINE# return headers