[enh] make baron runnable with python2 and 3