You don't need to do this.  The syntax `test2 = b'idzie wąż wąską dróżką'` will work in both python2 and python3.