#NEWLINE# def store_token( file_path , account_type , username , token ) : #NEWLINE# #INDENT# config = ConfigParser . ConfigParser ( ) #NEWLINE# config . read ( file_path ) #NEWLINE# if ( not config . has_section ( SECTION ) ) : #NEWLINE# #INDENT# config . add_section ( SECTION ) #NEWLINE# #UNINDENT# config . set ( SECTION , '{}.{}.token' . format ( account_type , username ) , account_type ) #NEWLINE# with open ( file_path , 'wb' ) as configfile : #NEWLINE# #INDENT# config . write ( configfile )