for every e in etags call the method e.encode with an argument string 'ascii', call the method decode on the result with an argument,
etags = [ e . encode ( 'ascii' ) . decode ( 'unicode_escape' ) for e in etags ]